package com.lovo.project.enums;

import lombok.Getter;

/**
 * @author YI只小阿帅丶
 * @title
 * @date 2020/11/4 9:10
 */

@Getter
public enum ServiceCodeEnum {
    /**
     * 添加角色异常
     */
    SERVICE_ADD_ERROR(2601, "添加服务异常"),
    /**
     * 修改角色异常
     */
    SERVICE_UPDATE_ERROR(4604, "修改服务异常"),
    /**
     * 删除角色异常
     */
    SERVICE_DELETE_ERROR(3602, "删除服务异常"),
    /**
     * 查询角色异常
     */
    SERVICE_FIND_ERROR(5603, "查询服务异常"),
    
    SERVICE_UNKNOWN_ERROR(9999,"发生未知异常");
    

    /**
     * 状态码
     */
    private final Integer code;
    /**
     * 状态信息
     */
    private final String msg;

    ServiceCodeEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

}
